//public class Main {
//    public static void main(String[] args) {
//        System.out.println("Hello world!");
//    }
//}
import java.util.*;

class Test{
    public static void main1(String[] args) {
        Map<String,String> map = new HashMap<>();
        map.put("system","系统");
        map.put("code","代码");
        map.put("chef","主厨");
        map.put("worldwide","世界各地的");
        map.put("Monday","星期一");
        map.put("slight","闪电般的");
        map.put("table","桌子");

        for(Map.Entry<String,String> entry: map.entrySet()) {
            System.out.println("单词:"+entry.getKey()+"  释义:"+entry.getValue());
        }
    }

    public static void main(String[] args) {
        /**
         * 因为Set是单键值的结构，故没有返回的函数*/
        Set<String> set = new HashSet<>();
        set.add("finish");
        set.add("complex");
        set.add("accomplish");
        set.add("coordination");
        set.add("existence");
        set.add("persistence");
        set.add("hardly");
        set.add("commitment");
        Iterator it = set.iterator();
        while(it.hasNext()) {
            System.out.println(it.next());
        }
    }
}